Integrand size = 18, antiderivative size = 187 \[ \int \frac {a+b \text {sech}^{-1}(c x)}{\sqrt {d+e x}} \, dx=\frac {2 \sqrt {d+e x} \left (a+b \text {sech}^{-1}(c x)\right )}{e}-\frac {4 b \sqrt {\frac {1}{1+c x}} \sqrt {1+c x} \sqrt {\frac {c (d+e x)}{c d+e}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right ),\frac {2 e}{c d+e}\right )}{c \sqrt {d+e x}}-\frac {4 b d \sqrt {\frac {1}{1+c x}} \sqrt {1+c x} \sqrt {\frac {c (d+e x)}{c d+e}} \operatorname {EllipticPi}\left (2,\arcsin \left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right ),\frac {2 e}{c d+e}\right )}{e \sqrt {d+e x}} \]
[Out]
Time = 0.19 (sec) , antiderivative size = 187, normalized size of antiderivative = 1.00, number of steps used = 8, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.444, Rules used = {6423, 958, 733, 430, 946, 174, 552, 551} \[ \int \frac {a+b \text {sech}^{-1}(c x)}{\sqrt {d+e x}} \, dx=\frac {2 \sqrt {d+e x} \left (a+b \text {sech}^{-1}(c x)\right )}{e}-\frac {4 b \sqrt {\frac {1}{c x+1}} \sqrt {c x+1} \sqrt {\frac {c (d+e x)}{c d+e}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right ),\frac {2 e}{c d+e}\right )}{c \sqrt {d+e x}}-\frac {4 b d \sqrt {\frac {1}{c x+1}} \sqrt {c x+1} \sqrt {\frac {c (d+e x)}{c d+e}} \operatorname {EllipticPi}\left (2,\arcsin \left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right ),\frac {2 e}{c d+e}\right )}{e \sqrt {d+e x}} \]
[In]
[Out]
Rule 174
Rule 430
Rule 551
Rule 552
Rule 733
Rule 946
Rule 958
Rule 6423
Rubi steps \begin{align*} \text {integral}& = \frac {2 \sqrt {d+e x} \left (a+b \text {sech}^{-1}(c x)\right )}{e}+\frac {\left (2 b \sqrt {\frac {1}{1+c x}} \sqrt {1+c x}\right ) \int \frac {\sqrt {d+e x}}{x \sqrt {1-c^2 x^2}} \, dx}{e} \\ & = \frac {2 \sqrt {d+e x} \left (a+b \text {sech}^{-1}(c x)\right )}{e}+\left (2 b \sqrt {\frac {1}{1+c x}} \sqrt {1+c x}\right ) \int \frac {1}{\sqrt {d+e x} \sqrt {1-c^2 x^2}} \, dx+\frac {\left (2 b d \sqrt {\frac {1}{1+c x}} \sqrt {1+c x}\right ) \int \frac {1}{x \sqrt {d+e x} \sqrt {1-c^2 x^2}} \, dx}{e} \\ & = \frac {2 \sqrt {d+e x} \left (a+b \text {sech}^{-1}(c x)\right )}{e}+\frac {\left (2 b d \sqrt {\frac {1}{1+c x}} \sqrt {1+c x}\right ) \int \frac {1}{x \sqrt {1-c x} \sqrt {1+c x} \sqrt {d+e x}} \, dx}{e}-\frac {\left (4 b \sqrt {\frac {1}{1+c x}} \sqrt {1+c x} \sqrt {-\frac {c^2 (d+e x)}{-c^2 d-c e}}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2} \sqrt {1+\frac {2 c e x^2}{-c^2 d-c e}}} \, dx,x,\frac {\sqrt {1-c x}}{\sqrt {2}}\right )}{c \sqrt {d+e x}} \\ & = \frac {2 \sqrt {d+e x} \left (a+b \text {sech}^{-1}(c x)\right )}{e}-\frac {4 b \sqrt {\frac {1}{1+c x}} \sqrt {1+c x} \sqrt {\frac {c (d+e x)}{c d+e}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right ),\frac {2 e}{c d+e}\right )}{c \sqrt {d+e x}}-\frac {\left (4 b d \sqrt {\frac {1}{1+c x}} \sqrt {1+c x}\right ) \text {Subst}\left (\int \frac {1}{\left (1-x^2\right ) \sqrt {2-x^2} \sqrt {d+\frac {e}{c}-\frac {e x^2}{c}}} \, dx,x,\sqrt {1-c x}\right )}{e} \\ & = \frac {2 \sqrt {d+e x} \left (a+b \text {sech}^{-1}(c x)\right )}{e}-\frac {4 b \sqrt {\frac {1}{1+c x}} \sqrt {1+c x} \sqrt {\frac {c (d+e x)}{c d+e}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right ),\frac {2 e}{c d+e}\right )}{c \sqrt {d+e x}}-\frac {\left (4 b d \sqrt {\frac {1}{1+c x}} \sqrt {1+c x} \sqrt {\frac {c (d+e x)}{c d+e}}\right ) \text {Subst}\left (\int \frac {1}{\left (1-x^2\right ) \sqrt {2-x^2} \sqrt {1-\frac {e x^2}{c \left (d+\frac {e}{c}\right )}}} \, dx,x,\sqrt {1-c x}\right )}{e \sqrt {d+e x}} \\ & = \frac {2 \sqrt {d+e x} \left (a+b \text {sech}^{-1}(c x)\right )}{e}-\frac {4 b \sqrt {\frac {1}{1+c x}} \sqrt {1+c x} \sqrt {\frac {c (d+e x)}{c d+e}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right ),\frac {2 e}{c d+e}\right )}{c \sqrt {d+e x}}-\frac {4 b d \sqrt {\frac {1}{1+c x}} \sqrt {1+c x} \sqrt {\frac {c (d+e x)}{c d+e}} \operatorname {EllipticPi}\left (2,\arcsin \left (\frac {\sqrt {1-c x}}{\sqrt {2}}\right ),\frac {2 e}{c d+e}\right )}{e \sqrt {d+e x}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 18.89 (sec) , antiderivative size = 1707, normalized size of antiderivative = 9.13 \[ \int \frac {a+b \text {sech}^{-1}(c x)}{\sqrt {d+e x}} \, dx=\frac {2 a \sqrt {d+e x}}{e}+\frac {2 b \sqrt {d+e x} \text {sech}^{-1}(c x)}{e}-\frac {4 i b \sqrt {\frac {c d+e+\frac {c d (1-c x)}{1+c x}-\frac {e (1-c x)}{1+c x}}{c+\frac {c (1-c x)}{1+c x}}} \left (2 c d \sqrt {-\frac {i \left (\sqrt {-c d-e} \sqrt {c d-e}+c d \sqrt {\frac {1-c x}{1+c x}}-e \sqrt {\frac {1-c x}{1+c x}}\right )}{\left (-i c d+\sqrt {-c d-e} \sqrt {c d-e}+i e\right ) \left (-i+\sqrt {\frac {1-c x}{1+c x}}\right )}} \sqrt {-\frac {i \left (\sqrt {-c d-e} \sqrt {c d-e}-c d \sqrt {\frac {1-c x}{1+c x}}+e \sqrt {\frac {1-c x}{1+c x}}\right )}{\left (i c d+\sqrt {-c d-e} \sqrt {c d-e}-i e\right ) \left (-i+\sqrt {\frac {1-c x}{1+c x}}\right )}} \left (1+\frac {1-c x}{1+c x}\right ) \operatorname {EllipticF}\left (\arcsin \left (\sqrt {\frac {\left (\sqrt {-c d-e}-i \sqrt {c d-e}\right ) \left (i+\sqrt {\frac {1-c x}{1+c x}}\right )}{\left (\sqrt {-c d-e}+i \sqrt {c d-e}\right ) \left (-i+\sqrt {\frac {1-c x}{1+c x}}\right )}}\right ),\frac {\left (\sqrt {-c d-e}+i \sqrt {c d-e}\right )^2}{\left (\sqrt {-c d-e}-i \sqrt {c d-e}\right )^2}\right )+(c d-e) \sqrt {\frac {\left (\sqrt {-c d-e}-i \sqrt {c d-e}\right ) \left (i+\sqrt {\frac {1-c x}{1+c x}}\right )}{\left (\sqrt {-c d-e}+i \sqrt {c d-e}\right ) \left (-i+\sqrt {\frac {1-c x}{1+c x}}\right )}} \sqrt {1+\frac {1-c x}{1+c x}} \sqrt {\frac {e-\frac {e (1-c x)}{1+c x}+c d \left (1+\frac {1-c x}{1+c x}\right )}{c d+e}} \operatorname {EllipticF}\left (i \text {arcsinh}\left (\sqrt {\frac {1-c x}{1+c x}}\right ),\frac {c d-e}{c d+e}\right )+2 i c d \sqrt {-\frac {i \left (\sqrt {-c d-e} \sqrt {c d-e}+c d \sqrt {\frac {1-c x}{1+c x}}-e \sqrt {\frac {1-c x}{1+c x}}\right )}{\left (-i c d+\sqrt {-c d-e} \sqrt {c d-e}+i e\right ) \left (-i+\sqrt {\frac {1-c x}{1+c x}}\right )}} \sqrt {-\frac {i \left (\sqrt {-c d-e} \sqrt {c d-e}-c d \sqrt {\frac {1-c x}{1+c x}}+e \sqrt {\frac {1-c x}{1+c x}}\right )}{\left (i c d+\sqrt {-c d-e} \sqrt {c d-e}-i e\right ) \left (-i+\sqrt {\frac {1-c x}{1+c x}}\right )}} \left (1+\frac {1-c x}{1+c x}\right ) \left (\operatorname {EllipticPi}\left (\frac {i \sqrt {-c d-e}-\sqrt {c d-e}}{\sqrt {-c d-e}-i \sqrt {c d-e}},\arcsin \left (\sqrt {\frac {\left (\sqrt {-c d-e}-i \sqrt {c d-e}\right ) \left (i+\sqrt {\frac {1-c x}{1+c x}}\right )}{\left (\sqrt {-c d-e}+i \sqrt {c d-e}\right ) \left (-i+\sqrt {\frac {1-c x}{1+c x}}\right )}}\right ),\frac {\left (\sqrt {-c d-e}+i \sqrt {c d-e}\right )^2}{\left (\sqrt {-c d-e}-i \sqrt {c d-e}\right )^2}\right )-\operatorname {EllipticPi}\left (\frac {-i \sqrt {-c d-e}+\sqrt {c d-e}}{\sqrt {-c d-e}-i \sqrt {c d-e}},\arcsin \left (\sqrt {\frac {\left (\sqrt {-c d-e}-i \sqrt {c d-e}\right ) \left (i+\sqrt {\frac {1-c x}{1+c x}}\right )}{\left (\sqrt {-c d-e}+i \sqrt {c d-e}\right ) \left (-i+\sqrt {\frac {1-c x}{1+c x}}\right )}}\right ),\frac {\left (\sqrt {-c d-e}+i \sqrt {c d-e}\right )^2}{\left (\sqrt {-c d-e}-i \sqrt {c d-e}\right )^2}\right )\right )\right )}{e \sqrt {\frac {\left (\sqrt {-c d-e}-i \sqrt {c d-e}\right ) \left (i+\sqrt {\frac {1-c x}{1+c x}}\right )}{\left (\sqrt {-c d-e}+i \sqrt {c d-e}\right ) \left (-i+\sqrt {\frac {1-c x}{1+c x}}\right )}} \left (e-\frac {e (1-c x)}{1+c x}+c d \left (1+\frac {1-c x}{1+c x}\right )\right )} \]
[In]
[Out]
Time = 11.28 (sec) , antiderivative size = 286, normalized size of antiderivative = 1.53
method | result | size |
derivativedivides | \(\frac {2 \sqrt {e x +d}\, a +2 b \left (\sqrt {e x +d}\, \operatorname {arcsech}\left (c x \right )-\frac {2 c \,e^{2} \sqrt {\frac {-c \left (e x +d \right )+c d +e}{c e x}}\, x \sqrt {-\frac {-c \left (e x +d \right )+c d -e}{c e x}}\, \left (\operatorname {EllipticF}\left (\sqrt {e x +d}\, \sqrt {\frac {c}{c d +e}}, \sqrt {\frac {c d +e}{c d -e}}\right )-\operatorname {EllipticPi}\left (\sqrt {e x +d}\, \sqrt {\frac {c}{c d +e}}, \frac {c d +e}{c d}, \frac {\sqrt {\frac {c}{c d -e}}}{\sqrt {\frac {c}{c d +e}}}\right )\right ) \sqrt {\frac {-c \left (e x +d \right )+c d -e}{c d -e}}\, \sqrt {\frac {-c \left (e x +d \right )+c d +e}{c d +e}}}{\left (c^{2} \left (e x +d \right )^{2}-2 c^{2} d \left (e x +d \right )+c^{2} d^{2}-e^{2}\right ) \sqrt {\frac {c}{c d +e}}}\right )}{e}\) | \(286\) |
default | \(\frac {2 \sqrt {e x +d}\, a +2 b \left (\sqrt {e x +d}\, \operatorname {arcsech}\left (c x \right )-\frac {2 c \,e^{2} \sqrt {\frac {-c \left (e x +d \right )+c d +e}{c e x}}\, x \sqrt {-\frac {-c \left (e x +d \right )+c d -e}{c e x}}\, \left (\operatorname {EllipticF}\left (\sqrt {e x +d}\, \sqrt {\frac {c}{c d +e}}, \sqrt {\frac {c d +e}{c d -e}}\right )-\operatorname {EllipticPi}\left (\sqrt {e x +d}\, \sqrt {\frac {c}{c d +e}}, \frac {c d +e}{c d}, \frac {\sqrt {\frac {c}{c d -e}}}{\sqrt {\frac {c}{c d +e}}}\right )\right ) \sqrt {\frac {-c \left (e x +d \right )+c d -e}{c d -e}}\, \sqrt {\frac {-c \left (e x +d \right )+c d +e}{c d +e}}}{\left (c^{2} \left (e x +d \right )^{2}-2 c^{2} d \left (e x +d \right )+c^{2} d^{2}-e^{2}\right ) \sqrt {\frac {c}{c d +e}}}\right )}{e}\) | \(286\) |
parts | \(\frac {2 a \sqrt {e x +d}}{e}+\frac {2 b \left (\sqrt {e x +d}\, \operatorname {arcsech}\left (c x \right )-\frac {2 c \,e^{2} \sqrt {-\frac {c \left (e x +d \right )-c d -e}{c e x}}\, x \sqrt {\frac {c \left (e x +d \right )-c d +e}{c e x}}\, \left (\operatorname {EllipticF}\left (\sqrt {e x +d}\, \sqrt {\frac {c}{c d +e}}, \sqrt {\frac {c d +e}{c d -e}}\right )-\operatorname {EllipticPi}\left (\sqrt {e x +d}\, \sqrt {\frac {c}{c d +e}}, \frac {c d +e}{c d}, \frac {\sqrt {\frac {c}{c d -e}}}{\sqrt {\frac {c}{c d +e}}}\right )\right ) \sqrt {-\frac {c \left (e x +d \right )-c d +e}{c d -e}}\, \sqrt {-\frac {c \left (e x +d \right )-c d -e}{c d +e}}}{\sqrt {\frac {c}{c d +e}}\, \left (c^{2} \left (e x +d \right )^{2}-2 c^{2} d \left (e x +d \right )+c^{2} d^{2}-e^{2}\right )}\right )}{e}\) | \(291\) |
[In]
[Out]
Timed out. \[ \int \frac {a+b \text {sech}^{-1}(c x)}{\sqrt {d+e x}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {a+b \text {sech}^{-1}(c x)}{\sqrt {d+e x}} \, dx=\int \frac {a + b \operatorname {asech}{\left (c x \right )}}{\sqrt {d + e x}}\, dx \]
[In]
[Out]
Exception generated. \[ \int \frac {a+b \text {sech}^{-1}(c x)}{\sqrt {d+e x}} \, dx=\text {Exception raised: ValueError} \]
[In]
[Out]
\[ \int \frac {a+b \text {sech}^{-1}(c x)}{\sqrt {d+e x}} \, dx=\int { \frac {b \operatorname {arsech}\left (c x\right ) + a}{\sqrt {e x + d}} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {a+b \text {sech}^{-1}(c x)}{\sqrt {d+e x}} \, dx=\int \frac {a+b\,\mathrm {acosh}\left (\frac {1}{c\,x}\right )}{\sqrt {d+e\,x}} \,d x \]
[In]
[Out]